package com.rdtravel.converters;

import com.rdtravel.entities.DepartureLocation;

import org.springframework.core.convert.converter.Converter;

public class DepartureLocationToStringConverter implements
		Converter<DepartureLocation, String> {

	@Override
	public String convert(DepartureLocation departureLocation) {
		if (departureLocation == null) {
			return null;
		}
		return departureLocation.getName();
	}

}
